package com.example.jiaju.exception;

import com.example.jiaju.enums.ResultEnum;

public class SMException extends RuntimeException{
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public SMException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code=resultEnum.getCode();
    }

    public SMException(Integer code,String msg){
        super(msg);
        this.code=code;
    }
}
